﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tenta_v1_5
{
    class Node<TKey, TValue> where TValue : class
    {
        public TKey Key { get; set; }
        public TValue Value { get; set; }
        public Node<TKey, TValue> Next { get; set; }

        public Node(TKey key = default(TKey), TValue value = default(TValue), Node<TKey, TValue> next = null)
        {
            this.Key = key;
            this.Value = value;
            this.Next = next;
        }
    }
}
